package pers.course.others;

class test {
    int a;
//    public String toString() {
//        return "这是" + String.valueOf(a);
//    }
    public void setA(int aa) {
        this.a = aa;
    }
}

public class toStr {
    public static void main(String[] args) {
        test t = new test();
        t.setA(5);
//        System.out.println(t.toString());
        System.out.println(t);
    }
}
